package com.yeyks.activity.dal.dao;

import com.yeyks.activity.dal.domain.ActivityNodeUserRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeyks.common.result.activity.ActivityCardStatResult;
import com.yeyks.common.result.activity.ActivityStatRedResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author yun
 * @since 2019-12-06
 */
public interface ActivityNodeUserRecordMapper extends BaseMapper<ActivityNodeUserRecord> {

    Integer getRedGetCount(@Param(value = "activityCode") String activityCode);

    List<ActivityStatRedResult> redTotal(@Param(value = "activityCode") String activityCode);

    List<ActivityCardStatResult> stat(@Param(value = "activityCode") String activityCode,
                                      @Param(value = "node") String node);
}
